set more off

use "reassessments", clear
keep if inlist(county_name, "cattaraugus", "cayuga", "livingston", "putnam", "schuyler")
unique county_name muni_name

use "elections", clear

collapse ntowns contested winnermargin, by(year)

eststo clear

estpost tabstat ntowns contested winnermargin, by(year) nototal

#delimit;

esttab 
	using "table A5.tex"
	,
		replace
		booktabs
		cells("ntowns contested winnermargin")
		unstack
		
		noobs 
		;

#delimit cr

